import request from '@/utils/request'

// 查询右侧检定表格
export function selectedBzwzList(query) {
    return request({
        url: '/resource/bzwz/selectedBzwzList',
        method: 'get',
        params: query
    })
}

export function selectedBzwz(bzwzId) {
    return request({
        url: '/resource/bzwz/selectBzwz/out/' + bzwzId,
        method: 'post',
    })
}

export function cancelSelectedBzwz(outId) {
    return request({
        url: '/resource/bzwz/out/' + outId,
        method: 'delete',
    })
}

export function clearAll() {
    return request({
        url: '/resource/bzwz/out/deleteAll',
        method: 'delete',
    })
}

export function outCount() {
    return request({
        url: '/resource/bzwz/out/outSelectedCount',
        method: 'get',
    })
}


//期间核查
export function selectCheckBzwzList(query) {
    return request({
        url: '/resource/bzwz/check/checkList',
        method: 'get',
        params: query
    })
}

export function insertCheckBzwz(bzwzId) {
    return request({
        url: '/resource/bzwz/check/' + bzwzId,
        method: 'post',
    })
}